import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: "/hadoop",
    name: "Hadoop",
    component: () => import('../views/Hadoop.vue')
  },
  {
    path: "/login",
    name: "Login",
    component: () => import('../views/Login.vue')
  },
  {
    path: "/register",
    name: "Register",
    component: () => import('../views/Register.vue')
  },
  {
    path: "/console",
    name: "Console",
    component: () => import('../views/Console.vue')
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
